package com.dayu.sale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dayu.sale.mapper.DySalePartsMapper;
import com.dayu.sale.domain.DySaleParts;
import com.dayu.sale.service.IDySalePartsService;

/**
 * 版本3 --- 出售配件Service业务层处理
 *
 * @author HK
 * @date 2024-01-10
 */
@Service
public class DySalePartsServiceImpl implements IDySalePartsService
{
    @Autowired
    private DySalePartsMapper dySalePartsMapper;

    /**
     * 查询版本3 --- 出售配件
     *
     * @param id 版本3 --- 出售配件ID
     * @return 版本3 --- 出售配件
     */
    @Override
    public DySaleParts selectDySalePartsById(Long id)
    {
        return dySalePartsMapper.selectDySalePartsById(id);
    }

    /**
     * 查询版本3 --- 出售配件列表
     *
     * @param dySaleParts 版本3 --- 出售配件
     * @return 版本3 --- 出售配件
     */
    @Override
    public List<DySaleParts> selectDySalePartsList(DySaleParts dySaleParts)
    {
        return dySalePartsMapper.selectDySalePartsList(dySaleParts);
    }

    /**
     * 新增版本3 --- 出售配件
     *
     * @param dySaleParts 版本3 --- 出售配件
     * @return 结果
     */
    @Override
    public int insertDySaleParts(DySaleParts dySaleParts)
    {
        return dySalePartsMapper.insertDySaleParts(dySaleParts);
    }

    /**
     * 修改版本3 --- 出售配件
     *
     * @param dySaleParts 版本3 --- 出售配件
     * @return 结果
     */
    @Override
    public int updateDySaleParts(DySaleParts dySaleParts)
    {
        return dySalePartsMapper.updateDySaleParts(dySaleParts);
    }
}
